<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/axios-0.18.0.js"></script>
    <script src="../js/vue.js"></script>
    <script src="index.js"></script>
    <link rel="stylesheet" href="index.css">
    <style>
        .el-header, .el-footer {
            background-color: #044f9a;
            color: #333;
            text-align: right;
            line-height: 60px;
        }

        .el-aside {
            background-color: #21739a;
            color: #333;
            text-align: center;
            line-height: 200px;
        }

        .el-main {
            background-color: #ffffff;
            color: #333;
            text-align: center;
            height: 1000px;
        }

        body > .el-container {
            margin-bottom: 40px;
        }

        .el-container:nth-child(5) .el-aside,
        .el-container:nth-child(6) .el-aside {
            line-height: 260px;
        }

        .el-container:nth-child(7) .el-aside {
            line-height: 320px;
        }
        .el-dropdown-link {
            cursor: pointer;
            color: #ffffff;
        }
        .el-icon-arrow-down {
            font-size: 12px;
        }
    </style>

</head>
<body>
<div id="app">
    <el-container>
        <el-header>
            <el-dropdown @command="handleUser">
                <span class="el-dropdown-link">
                    用户中心<i class="el-icon-arrow-down el-icon--right"></i>
                </span>
                <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item command="selfInfo">个人资料</el-dropdown-item>
                    <el-dropdown-item command="alterPassword">修改密码</el-dropdown-item>
                    <el-dropdown-item command="logout">退出登陆</el-dropdown-item>
                </el-dropdown-menu>
            </el-dropdown>
        </el-header>
        <el-container>
            <el-aside width="200px">
                        <el-menu
                                default-active="2"
                                class="el-menu-vertical-demo"
                                @open="handleOpen"
                                @close="handleClose"
                                background-color="#21739a"
                                text-color="#03a9f4"
                                active-text-color="#ffd04b">
                            <el-submenu index="1">
                                <template slot="title">
                                    <i class="el-icon-time"></i>
                                    <span>预约管理</span>
                                </template>
                                <el-menu-item-group>
                                    <el-menu-item index="1-1"><a href="http://www.baidu.com" target="main">预约列表</a></el-menu-item>
                                    <el-menu-item index="1-2"><a href="#">检查项管理</a></el-menu-item>
                                    <el-menu-item index="1-3"><a href="#">检查组管理</a></el-menu-item>
                                    <el-menu-item index="1-4"><a href="#">预约周期</a></el-menu-item>
                                </el-menu-item-group>
                            </el-submenu>

                            <el-submenu index="2">
                                <template slot="title">
                                    <i class="el-icon-time"></i>
                                    <span>会员管理</span>
                                </template>
                                <el-menu-item-group>
                                    <el-menu-item index="2-1"><a href="#">会员信息</a></el-menu-item>
                                    <el-menu-item index="2-2"><a href="#">会员列表</a></el-menu-item>
                                    <el-menu-item index="2-3"><a href="#">会员说明</a></el-menu-item>
                                    <el-menu-item index="2-4"><a href="#">会员活动</a></el-menu-item>
                                </el-menu-item-group>
                            </el-submenu>
                        </el-menu>
            </el-aside>
            <el-container>
                <el-main>
                    <!--<iframe src="http://www.jd.com" name="main" width="100%" height="100%" frameborder="0" ></iframe>-->

                </el-main>
                <el-footer>Footer</el-footer>
            </el-container>
        </el-container>
    </el-container>
</div>
<script>
    let vue=new Vue({
        el:"#app",
        data(){
            return{
                tableData: [{
                    date: '2016-05-02',
                    name: '王小虎',
                    address: '上海市普陀区金沙江路 1518 弄'
                }, {
                    date: '2016-05-04',
                    name: '王小虎',
                    address: '上海市普陀区金沙江路 1517 弄'
                }, {
                    date: '2016-05-01',
                    name: '王小虎',
                    address: '上海市普陀区金沙江路 1519 弄'
                }, {
                    date: '2016-05-03',
                    name: '王小虎',
                    address: '上海市普陀区金沙江路 1516 弄'
                }]
            }
        },
        methods:{
            handleUser(res){
                alert(res)
            }
        }
    });
</script>


</body>
</html>

